﻿namespace ConsoleApp9
{
     class Program
    {
        static void Main(string[] args)
        {
            double height = 100;
            double totalDistance = 0;

            for (int i = 1; i <= 10; i++)
            {
                if (i == 1)
                {
                    totalDistance += height;
                }
                else
                {
                    totalDistance += height * 2;
                }
                height /= 2;
            }

            Console.WriteLine($"第10次落地时，共经过 {totalDistance} 米");
            Console.WriteLine($"第10次反弹高度为 {height} 米");
        }
    }
}
